<!-- src/App.vue -->
<template>
  <div id="app">
    <router-view></router-view>
  </div>
</template>

<script lang="ts">
import { defineComponent,onMounted } from 'vue';
import { useUserStore } from './store/user';

 




export default defineComponent({
    setup() {
        const userStore = useUserStore();
        onMounted(() => {
            userStore.loadUser(); // 加载用户信息
        });
    },
});
</script>

<style lang="scss">
/* Add your scss here */
* {
  padding: 0;
  margin: 0;
  box-sizing: border-box;
}
</style>
